package com.zh.freechat.common.req;

import jakarta.validation.constraints.Email;
import jakarta.validation.constraints.Pattern;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import java.io.Serializable;

import static com.zh.mycommon.value.RegexpConst.REGEX_PHONE;


@Data
public class UserUpdateForm implements Serializable {
    @Length(max = 100)
    private String avatarUrl;

    @Pattern(regexp = REGEX_PHONE)
    private String phone;

    @Email
    private String email;

    @Length(max = 250)
    private String profile;

}
